<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>RTOS - a cooperative multitasking library: armboard.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">RTOS - a cooperative multitasking library
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">armboard.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//**************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="comment"></span><span class="comment">//***************************************************************************</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef __armboard</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define __armboard</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00013"></a>00013 <span class="preprocessor">#define armboard_VERSION &quot;V1.00 (2012-04-04)&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 <span class="comment">// we need the RTOS</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &quot;pRTOS.h&quot;</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="comment">// we need NULL</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;cstring&gt;</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="comment">//***************************************************************************</span>
<a name="l00023"></a>00023 <span class="comment">//</span>
<a name="l00024"></a>00024 <span class="comment">// class armboard</span>
<a name="l00025"></a>00025 <span class="comment">//</span>
<a name="l00027"></a>00027 <span class="comment"></span><span class="comment">//</span>
<a name="l00033"></a>00033 <span class="comment"></span><span class="comment">//</span>
<a name="l00034"></a>00034 <span class="comment">//***************************************************************************</span>
<a name="l00035"></a>00035 
<a name="l00036"></a><a class="code" href="classarmboard.html">00036</a> <span class="keyword">class </span><a class="code" href="classarmboard.html" title="interface to some peripherals of the HU ARM board">armboard</a> {
<a name="l00037"></a>00037 <span class="keyword">public</span>:
<a name="l00038"></a>00038 
<a name="l00045"></a>00045    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard.html#a5b64e245539cb57a16a4156b67ff8daf">wait</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> t );
<a name="l00046"></a>00046 
<a name="l00048"></a><a class="code" href="classarmboard_1_1output__pin.html">00048</a>    <span class="keyword">class </span><a class="code" href="classarmboard_1_1output__pin.html" title="an output pin">output_pin</a> {
<a name="l00049"></a>00049    <span class="keyword">public</span>:
<a name="l00050"></a>00050         
<a name="l00052"></a>00052       <span class="keyword">virtual</span> <span class="keywordtype">void</span> <span class="keyword">set</span>( <span class="keywordtype">bool</span> x )=0;
<a name="l00053"></a>00053       
<a name="l00055"></a><a class="code" href="classarmboard_1_1output__pin.html#a074df2e2e1b0df4821405dddb7ef6122">00055</a>       <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1output__pin.html#a074df2e2e1b0df4821405dddb7ef6122" title="configure the pin as output pin">direction_set_output</a>(){}
<a name="l00056"></a>00056    };
<a name="l00057"></a>00057   
<a name="l00059"></a><a class="code" href="classarmboard_1_1input__pin.html">00059</a>    <span class="keyword">class </span><a class="code" href="classarmboard_1_1input__pin.html" title="an input pin">input_pin</a> {
<a name="l00060"></a>00060    <span class="keyword">public</span>:
<a name="l00061"></a>00061         
<a name="l00063"></a>00063       <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <span class="keyword">get</span>()=0;
<a name="l00064"></a>00064       
<a name="l00066"></a><a class="code" href="classarmboard_1_1input__pin.html#a6f411c77d28b26f6a7614c80d8836e0e">00066</a>       <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1input__pin.html#a6f411c77d28b26f6a7614c80d8836e0e" title="configure the pin as input pin">direction_set_input</a>(){}
<a name="l00067"></a>00067    };
<a name="l00068"></a>00068   
<a name="l00070"></a><a class="code" href="classarmboard.html#a7c2d74619607aeb7eb3d401d06022d5e">00070</a>    <span class="keyword">enum</span> <a class="code" href="classarmboard.html#a7c2d74619607aeb7eb3d401d06022d5e" title="specfies the direction of a pin">direction</a> { input, output };
<a name="l00071"></a>00071   
<a name="l00073"></a><a class="code" href="classarmboard_1_1input__output__pin.html">00073</a>    <span class="keyword">class </span><a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> : <span class="keyword">public</span> <a class="code" href="classarmboard_1_1output__pin.html" title="an output pin">output_pin</a>, <span class="keyword">public</span> <a class="code" href="classarmboard_1_1input__pin.html" title="an input pin">input_pin</a> {
<a name="l00074"></a>00074    <span class="keyword">public</span>:
<a name="l00075"></a>00075         
<a name="l00077"></a><a class="code" href="classarmboard_1_1input__output__pin.html#afb43cbbfb133e85c2cbe08d33e66c823">00077</a>       <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1input__output__pin.html#afb43cbbfb133e85c2cbe08d33e66c823" title="configure the direction of the pin">direction_set</a>( <a class="code" href="classarmboard.html#a7c2d74619607aeb7eb3d401d06022d5e" title="specfies the direction of a pin">direction</a> d ){
<a name="l00078"></a>00078          <span class="keywordflow">if</span>( d == input ){
<a name="l00079"></a>00079             <a class="code" href="classarmboard_1_1input__output__pin.html#a1cba37f66ea848e82d10b51093ec6d37" title="configure the pin as input">direction_set_input</a>();
<a name="l00080"></a>00080          } <span class="keywordflow">else</span> {
<a name="l00081"></a>00081             <a class="code" href="classarmboard_1_1input__output__pin.html#a78003ecaed9cb9a54eafdcd8745d8d34" title="configure the pin as output">direction_set_output</a>();
<a name="l00082"></a>00082          }
<a name="l00083"></a>00083       }
<a name="l00084"></a>00084       
<a name="l00086"></a><a class="code" href="classarmboard_1_1input__output__pin.html#a1cba37f66ea848e82d10b51093ec6d37">00086</a>       <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1input__output__pin.html#a1cba37f66ea848e82d10b51093ec6d37" title="configure the pin as input">direction_set_input</a>(){
<a name="l00087"></a>00087          <a class="code" href="classarmboard_1_1input__output__pin.html#afb43cbbfb133e85c2cbe08d33e66c823" title="configure the direction of the pin">direction_set</a>( input );
<a name="l00088"></a>00088       }
<a name="l00089"></a>00089       
<a name="l00091"></a><a class="code" href="classarmboard_1_1input__output__pin.html#a78003ecaed9cb9a54eafdcd8745d8d34">00091</a>       <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1input__output__pin.html#a78003ecaed9cb9a54eafdcd8745d8d34" title="configure the pin as output">direction_set_output</a>(){
<a name="l00092"></a>00092          <a class="code" href="classarmboard_1_1input__output__pin.html#afb43cbbfb133e85c2cbe08d33e66c823" title="configure the direction of the pin">direction_set</a>( output );  
<a name="l00093"></a>00093       }                      
<a name="l00094"></a>00094    };
<a name="l00095"></a>00095 
<a name="l00097"></a><a class="code" href="classarmboard_1_1input__output__pin__mkt.html">00097</a>    <span class="keyword">class </span><a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a>: <span class="keyword">public</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> {
<a name="l00098"></a>00098    <span class="keyword">private</span>:
<a name="l00099"></a>00099       <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nr;
<a name="l00100"></a>00100       
<a name="l00101"></a>00101    <span class="keyword">public</span>: 
<a name="l00102"></a>00102         
<a name="l00104"></a><a class="code" href="classarmboard_1_1input__output__pin__mkt.html#ae4f88cf4b5ddd6dc57c4c542ca46003e">00104</a>       <a class="code" href="classarmboard_1_1input__output__pin__mkt.html#ae4f88cf4b5ddd6dc57c4c542ca46003e" title="create a pin: specify the port nr and the pin nr">input_output_pin_mkt</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> port, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pin ):
<a name="l00105"></a>00105          nr( port * 32 + pin ){}
<a name="l00106"></a>00106      
<a name="l00108"></a><a class="code" href="classarmboard_1_1input__output__pin__mkt.html#a25a76986bb1942cf6696a0c509a6ecf7">00108</a>       <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html#a25a76986bb1942cf6696a0c509a6ecf7" title="configure the pin as input">direction_set_input</a>(){
<a name="l00109"></a>00109          mkt_pin_configure( nr, mkt_input );
<a name="l00110"></a>00110       }
<a name="l00111"></a>00111      
<a name="l00113"></a><a class="code" href="classarmboard_1_1input__output__pin__mkt.html#a2632776654a1c78334434e9027e20d71">00113</a>       <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html#a2632776654a1c78334434e9027e20d71" title="configure the pin as output">direction_set_output</a>(){
<a name="l00114"></a>00114          mkt_pin_configure( nr, mkt_output );  
<a name="l00115"></a>00115       }
<a name="l00116"></a>00116      
<a name="l00118"></a><a class="code" href="classarmboard_1_1input__output__pin__mkt.html#abea2382e105e2fd1683dfd0135eb17a1">00118</a>       <span class="keywordtype">void</span> <span class="keyword">set</span>( <span class="keywordtype">bool</span> x ){
<a name="l00119"></a>00119          mkt_pin_write( nr, x );        
<a name="l00120"></a>00120       }
<a name="l00121"></a>00121      
<a name="l00123"></a><a class="code" href="classarmboard_1_1input__output__pin__mkt.html#a5371b732bdd3a41a93eaa171039ee7a2">00123</a>       <span class="keywordtype">bool</span> <span class="keyword">get</span>(){ 
<a name="l00124"></a>00124          <span class="keywordflow">return</span> mkt_pin_read( nr );
<a name="l00125"></a>00125       }
<a name="l00126"></a>00126    };
<a name="l00127"></a>00127    
<a name="l00129"></a><a class="code" href="classarmboard_1_1chip.html">00129</a>    <span class="keyword">class </span><a class="code" href="classarmboard_1_1chip.html" title="the pins of the LPC2148 chip on the board">chip</a> {
<a name="l00130"></a>00130    <span class="keyword">public</span>:
<a name="l00131"></a>00131       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_0;
<a name="l00132"></a>00132       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_1;
<a name="l00133"></a>00133       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_2;
<a name="l00134"></a>00134       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_3;
<a name="l00135"></a>00135       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_4;
<a name="l00136"></a>00136       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_5;
<a name="l00137"></a>00137       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_6;
<a name="l00138"></a>00138       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_7;
<a name="l00139"></a>00139       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_8;
<a name="l00140"></a>00140       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_9;
<a name="l00141"></a>00141       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_10;
<a name="l00142"></a>00142       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_11;
<a name="l00143"></a>00143       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_12;
<a name="l00144"></a>00144       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_13;
<a name="l00145"></a>00145       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_14;
<a name="l00146"></a>00146       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_15;
<a name="l00147"></a>00147       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_16;
<a name="l00148"></a>00148       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_17;
<a name="l00149"></a>00149       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_18;
<a name="l00150"></a>00150       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_19;
<a name="l00151"></a>00151       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_20;
<a name="l00152"></a>00152       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_21;
<a name="l00153"></a>00153       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_22;
<a name="l00154"></a>00154       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_23;
<a name="l00155"></a>00155       
<a name="l00156"></a>00156       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_25;
<a name="l00157"></a>00157       
<a name="l00158"></a>00158       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_28;
<a name="l00159"></a>00159       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_29;
<a name="l00160"></a>00160       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_30;
<a name="l00161"></a>00161       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_0_31;
<a name="l00162"></a>00162       
<a name="l00163"></a>00163       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_16;
<a name="l00164"></a>00164       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_17;
<a name="l00165"></a>00165       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_18;
<a name="l00166"></a>00166       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_19;
<a name="l00167"></a>00167       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_20;
<a name="l00168"></a>00168       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_21;
<a name="l00169"></a>00169       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_22;
<a name="l00170"></a>00170       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_23;
<a name="l00171"></a>00171       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_24;
<a name="l00172"></a>00172       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_25;
<a name="l00173"></a>00173       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_26;
<a name="l00174"></a>00174       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_27;      
<a name="l00175"></a>00175       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_28;
<a name="l00176"></a>00176       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_29;
<a name="l00177"></a>00177       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_30;
<a name="l00178"></a>00178       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin__mkt.html" title="an input-output pin implemented using the mkt_ routines">input_output_pin_mkt</a> pin_1_31;
<a name="l00179"></a>00179    };
<a name="l00180"></a>00180 
<a name="l00181"></a>00181 
<a name="l00183"></a><a class="code" href="classarmboard_1_1_l_e_ds.html">00183</a>    <span class="keyword">class </span><a class="code" href="classarmboard_1_1_l_e_ds.html" title="the 8 LEDs on the board">LEDs</a> {
<a name="l00184"></a>00184    <span class="keyword">private</span>:
<a name="l00185"></a>00185       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; hold_clock;
<a name="l00186"></a>00186       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; shift_clock;
<a name="l00187"></a>00187       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; data;
<a name="l00188"></a>00188       <span class="keyword">static</span> <span class="keywordtype">void</span> init( <span class="keywordtype">void</span> );  
<a name="l00189"></a>00189       
<a name="l00190"></a>00190    <span class="keyword">public</span>:
<a name="l00196"></a>00196       <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1_l_e_ds.html#a9bd45c018a4494f4ffd799ad31405147">write</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> V ); 
<a name="l00197"></a>00197    };
<a name="l00198"></a>00198 
<a name="l00200"></a><a class="code" href="classarmboard_1_1_l_c_d.html">00200</a>    <span class="keyword">class </span><a class="code" href="classarmboard_1_1_l_c_d.html" title="the 2x16 characters LCD on the board">LCD</a> {
<a name="l00201"></a>00201    <span class="keyword">private</span>:
<a name="l00202"></a>00202       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; d4;
<a name="l00203"></a>00203       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; d5;
<a name="l00204"></a>00204       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; d6;
<a name="l00205"></a>00205       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; d7;
<a name="l00206"></a>00206       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; rs;
<a name="l00207"></a>00207       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; e;
<a name="l00208"></a>00208       <span class="keyword">static</span> <span class="keywordtype">void</span> write4( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> n );
<a name="l00209"></a>00209       <span class="keyword">static</span> <span class="keywordtype">void</span> write8( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> isData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> b );      
<a name="l00210"></a>00210       <span class="keyword">static</span> <span class="keywordtype">void</span> init( <span class="keywordtype">void</span> );
<a name="l00211"></a>00211       
<a name="l00212"></a>00212    <span class="keyword">public</span>:
<a name="l00214"></a>00214       <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1_l_c_d.html#a24d9892765fbd82adaeae46d312b36cf" title="send the command byte cmd to the LCD">command</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> cmd );
<a name="l00215"></a>00215       
<a name="l00217"></a>00217       <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1_l_c_d.html#a3b8a899a42424259be621b8b79d46e3e" title="send the data byte chr to the LCD">data</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> chr );
<a name="l00218"></a>00218       
<a name="l00223"></a>00223       <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1_l_c_d.html#a123197085f8ddd83f32482f09aef0680">clear</a>( <span class="keywordtype">void</span> );
<a name="l00224"></a>00224       
<a name="l00234"></a>00234       <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1_l_c_d.html#a7f26cfe4efee1f84c38c6b473836506a">char_write</a>( <span class="keywordtype">char</span> chr );
<a name="l00235"></a>00235       
<a name="l00240"></a>00240       <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1_l_c_d.html#a954d8617506721f7338ec205b7e20ebc">char_write_raw</a>( <span class="keywordtype">char</span> chr );
<a name="l00241"></a>00241       
<a name="l00243"></a>00243       <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1_l_c_d.html#a9d3f34c4ce19c5d3bb3e0a644771a8df" title="put the cursor at (x,y)">goto_xy</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> x, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> y ); 
<a name="l00244"></a>00244       
<a name="l00246"></a>00246       <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classarmboard_1_1_l_c_d.html#a62ca5c779f0c75c9f89b174ae01b1d03" title="put the cursor at position x of the current line">goto_x</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> x );    
<a name="l00247"></a>00247    };
<a name="l00248"></a>00248 
<a name="l00262"></a><a class="code" href="classarmboard_1_1keypad.html">00262</a>    <span class="keyword">class </span><a class="code" href="classarmboard_1_1keypad.html">keypad</a> {
<a name="l00263"></a>00263    <span class="keyword">private</span>:
<a name="l00264"></a>00264       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; dat;
<a name="l00265"></a>00265       <span class="keyword">static</span> <a class="code" href="classarmboard_1_1input__output__pin.html" title="a pin that can be configure as input or output">input_output_pin</a> &amp; clk;
<a name="l00266"></a>00266       <span class="keyword">static</span> <span class="keywordtype">void</span> init( <span class="keywordtype">void</span> );
<a name="l00267"></a>00267    <span class="keyword">public</span>:
<a name="l00268"></a>00268         
<a name="l00270"></a>00270       <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classarmboard_1_1keypad.html#ab028dc8ea74e24cd953c75c5d39aab0b" title="read all keys, return a bitmask">read_all</a>( <span class="keywordtype">void</span> );
<a name="l00271"></a>00271       
<a name="l00273"></a>00273       <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classarmboard_1_1keypad.html#a8b8b895360e162aba250ef0dbc95f544" title="check whether the specified key is pressed">is_pressed</a>( mkt_key key );   
<a name="l00274"></a>00274    };
<a name="l00275"></a>00275 
<a name="l00276"></a>00276 };
<a name="l00277"></a>00277 
<a name="l00278"></a>00278 
<a name="l00279"></a>00279 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sat Apr 14 2012 15:59:23 for RTOS - a cooperative multitasking library by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
